﻿using BCCommon.Extensions;
using BCCommon.TMS.Transport;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BCDto.TMS.MarketingCoupon.MarketingCouponReceive
{
    public class MarketingCouponReceiveDto
    {
        /// <summary>
        /// 营销优惠券领取记录Id
        /// </summary>
        public long MarketingCouponReceiveId { get; set; }
        /// <summary>
        /// 用户id
        /// </summary>
        public long UserId { get; set; }
        /// <summary>
        /// 用户名称
        /// </summary>
        public string UserName { get; set; }
        /// <summary>
        /// 优惠券类型Id
        /// </summary>
        public long MarketingCouponTypeId { get; set; }
        /// <summary>
        /// 优惠券类型
        /// </summary>
        public string CouponType { get; set; }
        /// <summary>
        /// 营销优惠券Id
        /// </summary>
        public long MarketingCouponId { get; set; }
        /// <summary>
        /// 优惠券票号
        /// </summary>
        public int CouponNumber { get; set; }
        /// <summary>
        /// 优惠券名称
        /// </summary>
        public string CouponName { get; set; }
        /// <summary>
        /// 优惠券概要
        /// </summary>
        public string CouponSummark { get; set; }
        /// <summary>
        /// 开始日期
        /// </summary>
        public DateTime StartDate { get; set; }
        /// <summary>
        /// 结束日期
        /// </summary>
        public DateTime EndDate { get; set; }
        /// <summary>
        /// 优惠金额
        /// </summary>
        public decimal CouponAmount { get; set; }
        /// <summary>
        /// 适用地编码
        /// </summary>
        public string ApplicablePlaceCode { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }
        /// <summary>
        /// 是否通用运输业务
        /// </summary>
        public bool IsCommonBusiness { get; set; }
        /// <summary>
        /// 车辆运输业务配置Id
        /// </summary>
        public long? VehicleTransportBusinessConfigId { get; set; }
        /// <summary>
        /// 运输业务
        /// </summary>
        public TransportBusinessType? TransportBusiness { get; set; }

        /// <summary>
        /// 运输业务
        /// </summary>
        public string TransportBusinessStr => TransportBusiness.HasValue ? TransportBusiness.Value.GetDescriptionString() : null;
    }
}
